﻿using System;
using Crawler.DomainServices.DataServices;
using FluentNHibernate.Cfg.Db;

namespace Crawler.DataServices.Persistence.nHibernate
{
	internal class SqliteSessionFactoryProvider : 	SessionFactoryProvider
	{

		public SqliteSessionFactoryProvider(IDataServicesConfiguration configuration)  :base(configuration)
		{
		}

		protected override IPersistenceConfigurer GetMoviesDbConnectionString()
		{
			return SQLiteConfiguration.Standard.ConnectionString(Configuration.SqliteMoviesConnStr);
		}

		protected override IPersistenceConfigurer GetCrawlDbConnectionString()
		{
			return SQLiteConfiguration.Standard.ConnectionString(Configuration.SqliteCrawlConnStr);
		}
	}
}